package com.admin.core;

import com.tiangong.framework.bo.AbstractGlobalFilter;
import com.tiangong.framework.bo.CDO;
import com.tiangong.framework.bo.Return;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
/**
 * 全局过滤器1
 */
@Component
@Order(1)
@Slf4j
public class Filter1 extends AbstractGlobalFilter {
    @Override
    public Return doFilter(HttpServletRequest request, CDO cdoRequest) {
        log.info("Filter1");
        return Return.SUCCESS;
    }
}
